package cn.tedu.service;
/*
 接口的实现类
 */
import cn.tedu.pojo.Car;
import org.springframework.stereotype.Service;


@Service  // 等同于 SpringIOC的注解@Component ；即DI的使用前提
public class CarServiceImple implements  CarService {

    @Override
    public Car get() {   //修饰符权限：子类>=父类
        Car c = new Car();
        c.setId(15).setName("迈凯伦").setColor("black").setType("AST").setPrice(200000.50);
        System.out.println(c);
        return c;
    }
}
